/** 重新申请 */
function apply(id) {
    $.operate.post({
        url: ctx + "assembly/repeatApply",
        data: {id: id},
        fun: function () {
            location.href = ctx + "index";
        }
    })
}
/** 插销申请 */
function cancelApply(id) {
    $.operate.post({
        url: ctx + "assembly/cancel/apply",
        data: {id: id},
        fun: function () {
            location.href = ctx + "index";
        }
    })
}

/** 插销接收 */
function cancelRec(id) {
    $.operate.post({
        url: ctx + "assembly/cancel/rec",
        data: {id: id},
        fun: function () {
            location.href = ctx + "index";
        }
    })
}
/** 插销质检 */
function cancelCheck(id) {
    $.operate.post({
        url: ctx + "assembly/cancel/check",
        data: {id: id},
        fun: function () {
            location.href = ctx + "index";
        }
    })
}

function del(id) {
    $.operate.post({
        url: ctx + "assembly/delApply",
        data: {id: id},
        fun: function () {
            location.href = ctx + "index";
        }
    })
}

$(function () {

    $("#btn-updatePassword").click(function () {
        if ($("#password").val() && $("#password2").val()
            && $("#password").val() == $("#password2").val()) {
            $.operate.post({
                url: ctx + "upp",
                data: {pwd: $("#password").val()},
                fun: function () {
                    $.closePopup();
                    $.box.toptip_s();
                }
            })
        } else {
            $.box.toptip_w('两次密码输入不一致');
        }
    });



});

